package com.capgemini.holidayapp;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

@Path("/helloworld")
public class HelloWorldAppResource {

	@GET
	@Produces(MediaType.APPLICATION_JSON)
	public Response sayHello(){
		Contact contact = new Contact();
		contact.setEmail("verhulstjan@gmail.com");
		contact.setFirstName("Janneke");
		contact.setLastName("Verhulst");
		return Response.status(200).entity(contact).build();
	}
	
}
